package com.sk.sourcecircle.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.sk.sourcecircle.R;
import com.sk.sourcecircle.entity.MyCity;

import java.util.List;

/**
 * Created by sk on 2018/1/21.
 */

public class HotCityAdapter extends BaseQuickAdapter<MyCity, BaseViewHolder> {

    public HotCityAdapter(int layoutResId, @Nullable List<MyCity> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, MyCity item) {
        helper.setText(R.id.tv_city, item.getCity_name());
    }
}
